package ms.server.api.util;

/**
 * 单例模式
 * @Author ybc
 * @Date 2021/6/28 14:24
 */
public class SingletonUtil {

    private SingletonUtil() {
    }

    private static class SingletonHolder {
        private final static SingletonUtil instance = new SingletonUtil();
    }

    public static SingletonUtil getInstance() {
        return SingletonHolder.instance;
    }


}
